<?php

namespace App\Repositories\Louxiaoer;

use App\Criteria\Louxiaoer\GetLandMarkBySignBuildingCriteria;
use Illuminate\Support\Facades\DB;
use Prettus\Repository\Eloquent\BaseRepository;
use Prettus\Repository\Criteria\RequestCriteria;
use App\Repositories\Louxiaoer\LouxiaoerLandmarkRepository;
use App\Models\Louxiaoer\LouxiaoerLandmark;
use App\Validators\Louxiaoer\LouxiaoerLandmarkValidator;

/**
 * Class LouxiaoerLandmarkRepositoryEloquent.
 *
 * @package namespace App\Repositories\Louxiaoer;
 */
class LouxiaoerLandmarkRepositoryEloquent extends BaseRepository implements LouxiaoerLandmarkRepository
{
    /**
     * Specify Model class name
     *
     * @return string
     */
    public function model()
    {
        return LouxiaoerLandmark::class;
    }

    /**
    * Specify Validator class name
    *
    * @return mixed
    */
    public function validator()
    {

        return LouxiaoerLandmarkValidator::class;
    }


    /**
     * Boot up the repository, pushing criteria
     */
    public function boot()
    {
        $this->pushCriteria(app(RequestCriteria::class));
    }


    public function getLandMark($param){
        return DB::table($this->makeModel()->getTable())->where($param)->get();
    }
}
